import requests

url = 'http://10.1.9.151:9091/crowd_count'
pic_file = {'file': ('demo.png', open('example.png', 'rb'), 'image/jpeg')}

r = requests.post(url, files=pic_file)
print(r.text)